import request from '@/utils/request'

 export default {
  getResourceUrl(fileId) {
    if(fileId&&fileId.indexOf('data:')==0)return fileId;
    return process.env.VUE_APP_BASE_API+'/resource/download/'+fileId
  },
  getComponentPreviewUrl(fileId) {
    return process.env.VUE_APP_BASE_API+'/component/preview/'+fileId
  },
  getScreenPreviewUrl(fileId) {
    return process.env.VUE_APP_BASE_API+'/screen/preview/'+fileId
  }
  ,
  getResourceTempPreviewUrl(fileId) {
    return process.env.VUE_APP_BASE_API+'/resource/temp/'+fileId
  }
 }

